home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
blueprnt
/
bptime.asm
< prev
next >
Wrap
Assembly Source File
|
1989-10-03
|
2KB
|
57 lines
;**************************************************************
;* Set Time using Time on Specifed Server *
;* by Craig Chaiken (BPTIME.PAS, BPTIME.EXE) * *
;* October 3, 1989 *
;* *
;* Function: *
;* This program reads the number of ticks since midnight, *
;* a 32 bit number at location 0000:046C, from the *
;* server, and set this client to match. *
;* *
;* Command Format: *
;* BPTIME /socket_number *
;*************************************************************)
codeseg segment byte
assume cs:codeseg,ds:codeseg,es:codeseg
org 100h
start: jmp time
;
socket_num db 0
time_request db 'r'
time_addoff dw 046ch
time_addseg dw 0000h
time_length dw 0004h
include bpbioshd.mod
include misc.mod
time proc near ;Exit if no Parameters
mov al,cs:[80h]
or al,al
jnz time1
ret
time1: mov si,81h
call get_opt
mov socket_num,cl
put_packet socket_num,7,offset time_request
get_packet socket_num,cx,offset time_request
push es
push ds
mov cx,4
mov ax,0
mov es,ax
mov di,046ch
mov si,offset time_request+1
call sitoesdi
pop ds
pop es
int 20h
time endp
codeseg ends
end start